<aside class="main-sidebar sidebar-dark-primary elevation-4">
  <!-- Brand Logo -->
  <a href="index3.html" class="brand-link">
    <img src="/img/logo.png" alt="广告管理LOGO" class="brand-image img-circle elevation-3" style="opacity: .8">
    <span class="brand-text font-weight-light">硅谷后台管理系统</span>
  </a>

  <!-- Sidebar -->
  <div class="sidebar">
    <!-- Sidebar user panel (optional) -->
    <div class="user-panel mt-3 pb-3 mb-3 d-flex">
      <div class="info">
        <a href="#" class="d-block">
          欢迎您：<%= localStorage.getItem('account') %>
        </a>
      </div>
    </div>

    <!-- Sidebar Menu -->
    <nav class="mt-2">
      <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
        <% data.routes.filter(item=> item.isSidebar).forEach(item => { %>

          <li class="nav-item menu-open">
            <a href="javascript:;" class="nav-link <%= data.activeUrl === item.path ? 'active' : ''  %>"
              onclick="router.go('<%= item.path %>')">
              <i class="nav-icon fas fa-user"></i>
              <p>
                <%= item.title %>
              </p>
            </a>
          </li>

          <% }) %>

            <!-- 菜单列表 -->
            <!-- <li class="nav-item menu-open">
              <a href="javascrip:;" class="nav-link <%= data.activeUrl === '/index/admin' ? 'active' : ''  %>"
                onclick="router.go('/index/admin')">
                <i class="nav-icon fas fa-user"></i>
                <p>管理员列表页</p>
              </a>
            </li> -->

            <!-- <li class="nav-item menu-open">
          <a href="javascrip:;" class="nav-link <%= data.activeUrl === '/index/adv' ? 'active' : ''  %>"
            onclick="router.go('/index/adv')">
            <i class="nav-icon fas fa-audio-description"></i>
            <p>广告管理列表</p>
          </a>
        </li> -->
      </ul>
    </nav>
    <!-- /.sidebar-menu -->
  </div>
  <!-- /.sidebar -->
</aside>